extern long ifnand(long, long, long, long);
long cnand(long a, long b, long c, long d) {
	return (a>0)&&(b>0)&&(c>0)&&(d>0)?0:1;
}
int test() {
	long errors=0;
	int i,j,k,l;
	#define MAX 3
	for (i=0;i<MAX;i++) { for (j=0;j<MAX;j++) { for (k=0;k<MAX;k++) { for (l=0;l<MAX;l++) {
		long expected = cnand(i,j,k,l);
		long result = ifnand(i,j,k,l);
		if (result != expected) {
			errors++;
		}
	} } } }
	if (errors==0) return 1;
	return 0;
}

RET(test()==1);
